package com.jiutong.meipenggang.adapters;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jiutong.meipenggang.R;
import com.jiutong.meipenggang.entity.MyInverstBean;

import java.util.List;

/**
 * Created by bdf on 2017/12/21.
 */

public class MyInvestAdapter extends BaseQuickAdapter<MyInverstBean.ListBean> {
    public MyInvestAdapter(Context context, int layoutResId, List<MyInverstBean.ListBean> data) {
        super(context, layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, MyInverstBean.ListBean listBean) {
        baseViewHolder.setText(R.id.tv_small_title, listBean.getTitle())
                .setText(R.id.year_earn, listBean.getApr() + "%")
                .setText(R.id.hand_money, listBean.getInvest_amount() + "");
    }

}
